package edu.upenn.cis542;


import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;

public class PaintBrushActivity extends Activity {
    /** Called when the activity is first created. */
	
	public static Context con;
	public PaintBrushView pbv;
	
   public static boolean clear=false;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        con=getApplicationContext();
        pbv=new PaintBrushView(con);
    }
    	
    public void onClear(View view)
	{
    	PaintBrushView.xcord.clear();
    	PaintBrushView.ycord.clear();
    	PaintBrushView.colorTracker.clear();
    	PaintBrushView.canvas.drawColor(Color.BLACK);
    	findViewById(R.id.paintbrushview).invalidate();
    	//clear=true;
    	//pbv.invalidate();
	}
    	
}